<?php
// +—————————————————————————————————————————————————————————————————————
// | Created by Yunbao
// +—————————————————————————————————————————————————————————————————————
// | Copyright (c) 2013~2022 http://www.yunbaokj.com All rights reserved.
// +—————————————————————————————————————————————————————————————————————
// | Author: https://gitee.com/yunbaokeji
// +—————————————————————————————————————————————————————————————————————
// | Date: 2022-04-30
// +—————————————————————————————————————————————————————————————————————

class Domain_User {

	public function getBaseInfo($userId) {
			$rs = array();

			$model = new Model_User();
			$rs = $model->getBaseInfo($userId);

			return $rs;
	}
	
	public function checkName($uid,$name) {
			$rs = array();

			$model = new Model_User();
			$rs = $model->checkName($uid,$name);

			return $rs;
	}
	
	public function userUpdate($uid,$fields) {
			$rs = array();

			$model = new Model_User();
			$rs = $model->userUpdate($uid,$fields);

			return $rs;
	}
	
	
	public function getChargeRules() {
			$rs = array();

			$model = new Model_User();
			$rs = $model->getChargeRules();

			return $rs;
	}

	
	public function setAttent($uid,$touid) {
			$rs = array();

			$model = new Model_User();
			$rs = $model->setAttent($uid,$touid);

			return $rs;
	}

	
	public function getFollowsList($uid,$touid,$p,$key) {
			$rs = array();

			$model = new Model_User();
			$rs = $model->getFollowsList($uid,$touid,$p,$key);

			return $rs;
	}
	
	public function getFansList($uid,$touid,$p) {
			$rs = array();

			$model = new Model_User();
			$rs = $model->getFansList($uid,$touid,$p);

			return $rs;
	}


	
	public function getUserHome($uid,$touid) {
		$rs = array();

		$model = new Model_User();
		$rs = $model->getUserHome($uid,$touid);
		return $rs;
	}			
	
	public function checkMobile($uid,$mobile) {
        $rs = array();
                
        $model = new Model_User();
        $rs = $model->checkMobile($uid,$mobile);

        return $rs;
    }

    public function getLikeVideos($uid,$touid,$p){
    	$rs = array();
                
        $model = new Model_User();
        $rs = $model->getLikeVideos($uid,$touid,$p);

        return $rs;
    }

    public function getBalance($uid) {
    	
		$rs = array();

		$model = new Model_User();
		$rs = $model->getBalance($uid);

		return $rs;
	}










	public function updateBgImg($uid,$img){
		$rs = array();
		$model = new Model_User();
		$rs = $model->updateBgImg($uid,$img);
		return $rs;
	}

}
